package com.example.learnvitamio.live

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import com.example.learnvitamio.R
import com.example.learnvitamio.base.BaseActivity
import com.example.learnvitamio.databinding.ActivityLiveStreamingBinding

class LiveStreamingActivity : BaseActivity<ActivityLiveStreamingBinding>() {

    override fun ActivityLiveStreamingBinding.initBinding() {
        //LayoutManager用于指定RecyclerView的布局方式，
        // 这里使用的LinearLayoutManager是线性布局的意思
        val linearLayoutManager = LinearLayoutManager(this@LiveStreamingActivity)
        recycleView.layoutManager = linearLayoutManager
        val adapter = LiveAdapter(this@LiveStreamingActivity)
        recycleView.adapter = adapter
    }
}